import request from '@/utils/request'

// 查询客户关系管理列表
export function listSellermechanism(query) {
  return request({
    url: '/work/sellermechanism/listBm',
    method: 'get',
    params: query
  })
}

// 新增客户关系管理
export function addSellermechanism(data) {
  return request({
    url: '/work/sellermechanism',
    method: 'post',
    data: data
  })
}

// 删除客户关系管理
export function delSellermechanism(id) {
  return request({
    url: '/work/sellermechanism/' + id,
    method: 'delete'
  })
}
export function getBusinessName(){
  return request({
    url: '/work/sellermechanism/getBusinessName',
    method: 'get'
  })
}

export function getMechanismName(){
  return request({
    url: '/work/sellermechanism/getMechanismName',
    method: 'get'
  })
}
